<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <script src="显示输入的字符数.js" charset="gbk"></script>
  <style>
    input{
	  width:500px;
	  height:20px;
	  border:solid 1px red;
	}
  </style>
 </head>
 <body>
    <p>输入字符</p>
    <input type="text" id="text1" onkeyup="show(this)"> <br>
	<span id="span1"></span>
 </body>
</html>
